import * as types from './mutations-types'

export default {
  [types.SET_SINGER](state, singer) { //
    // 变更状态
    state.singer = singer
  },
  [types.SET_PLAYING_STATE](state, flag) {
    state.playing = flag
  },
  [types.SET_FULL_SCREEN](state, flag) {
    state.fullScreen = flag
  },
  [types.SET_PLAYLIST](state, list) {
    state.playlist = list
  },
  [types.SET_SEQUENCE_LIST](state, list) {
    state.sequenceList = list
  },
  [types.SET_PLAY_MODE](state, mode) {
    state.mode = mode
  },
  [types.SET_CURRENT_INDEX](state, index) {
    state.currentIndex = index
  },
  [types.SET_DISC](state, disc) {
    state.disc = disc
  },
  [types.SET_TOPLIST](state, toplist) {
    state.toplist = toplist
  },
  [types.SET_SEARCHHISTORY](state, list) {
    state.searchHistory = list
  },
  [types.SET_PLAYHISTORY](state, list) {
    state.playHistory = list
  },
  [types.SET_FAVORITELIST](state, list) {
    state.favoriteList = list
  }

}
